package com.feditory.view.category.service;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.feditory.view.category.vo.MainViewVO;

public interface CategoryControllerService {
//    @RequestMapping(method = RequestMethod.POST,  value = "/category", headers = "Accept=application/xml, application/json")
//    public @ResponseBody
//    CategoryRegisterVO registerCategory(@RequestBody
//    CategoryRegisterVO categoryVo) {
//        Category category = new Category();
//        category.setCategoryName("sdfsdfsdf");
//        
////        HttpHeaders headers = new HttpHeaders();
//////        MediaType mediaType = new MediaType("text", "html", Charset.forName("utf-8"));
//////        headers.setContentType(mediaType);
////        headers.add("content-type", "application/xml; charset=utf-8");
//        
////        this.categoryProvider.createCategory(category);
//        List<CategoryRegisterVO> categoryVos = new ArrayList<CategoryRegisterVO>();
//        return new CategoryRegisterVO();
//    }

    //    @RequestMapping(value = "/category/{id}", method = RequestMethod.GET, headers = "Accept=application/xml, application/json")
    //    public @ResponseBody
    //    CategoryRegisterVO getCategory(@PathVariable("id")
    //    Long id) {
    //        CategoryRegisterVO cc = new CategoryRegisterVO();
    //        return cc;
    //    }

    /**
     *======================================================
     * @method  : CategoryController - findAllMainCategories 
     * @author  : bgkang
     * @since   : 2012. 7. 14.
     * @return  : MainCategoryViewVO
     * @return 스마트도메 Main 카테고리 목록
     * @note    : Main 카테고리 및 Main 및의 Sub 카테고리 목록 조회
     *======================================================
     * @update : 수정일, 수정자, 수정내용
     *
     *======================================================
     */
    @RequestMapping(method = RequestMethod.GET, value = "/category/mainlist", headers = "Accept=application/xml,application/json ")
    public @ResponseBody MainViewVO findAllMainCategories();
}
